package com.zhp.service.impl;

import com.zhp.dao.FavoriteDao;
import com.zhp.model.Favorite;
import com.zhp.service.FavoriteService;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class FavoriteServiceImpl  implements FavoriteService {

    private FavoriteDao favoriteDao = new FavoriteDao();

    @Override
    public List<Favorite> findByUId(String uId) {
        Map<String, Object> map = new HashMap<>();
        map.put("u_id",uId);
        return favoriteDao.findByT(map);
    }
}
